<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>火电机组冷端优化系统 - 管理员设置</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary-bg: #0f172a;
            --secondary-bg: #1e293b;
            --card-bg: #1a2435;
            --accent: #5eead4;
            --accent-hover: #88f3e2;
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --text-tertiary: #64748b;
            --border-color: #334155;
            --success: #4ade80;
            --warning: #fbbf24;
            --error: #f87171;
            --font-main: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: var(--primary-bg);
            color: var(--text-primary);
            font-family: var(--font-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }
        .pagination{
			display: flex;
			align-items: center;
			justify-content: center;
		}
        /* 导航栏容器 */
        .navbar {
            background: var(--secondary-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 0 var(--spacing-lg);
            height: 60px;
            display:flex;
            align-items: center;
            z-index: 100;
        }
        
        /* Logo区域 */
        .logo-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            padding-right: var(--spacing-lg);
            border-right: 1px solid var(--border-color);
        }
        
        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-bg);
            font-size: 1rem;
        }
        
        .logo-text {
            font-size: 1.2rem;
            font-weight: 600;
            background: linear-gradient(to right, var(--text-primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        /* 导航区域 */
        .nav-area {
            flex: 1;
            padding: 0 var(--spacing-xl);
            display: flex;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            gap: var(--spacing-xl);
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--accent);
            background: rgba(94, 234, 212, 0.1);
        }
        
        .nav-link i {
            font-size: 0.9rem;
        }
        
        /* 下拉菜单 */
        .submenu {
            position: absolute;
            top: 100%;
            left: 0;
            background: var(--secondary-bg);
            border-radius: var(--radius-sm);
            min-width: 180px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            z-index: 200;
            display: none;
            padding: var(--spacing-sm) 0;
        }
        
        .nav-item:hover .submenu {
            display: block;
        }
        
        .submenu-item {
            padding: var(--spacing-sm) var(--spacing-md);
        }
        
        .submenu-link {
            color: var(--text-secondary);
            text-decoration: none;
            display: block;
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        
        .submenu-link:hover {
            color: var(--accent);
            background: rgba(94, 234, 212, 0.1);
        }
        
        /* 用户区域 */
        .user-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            position: relative;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--accent), #4a7bff);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
        }
        
        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: var(--secondary-bg);
            min-width: 200px;
            border-radius: var(--radius-sm);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            padding: var(--spacing-md);
            z-index: 200;
            display: none;
        }
        
        .user-dropdown.active {
            display: block;
        }
        
        .user-info {
            padding: var(--spacing-sm) 0 var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
            margin-bottom: var(--spacing-sm);
        }
        
        .user-name {
            font-weight: 600;
            margin-bottom: var(--spacing-xs);
        }
        
        .user-role {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }
        
        .dropdown-item {
            padding: var(--spacing-sm) 0;
        }
        
        .dropdown-link {
            color: var(--text-primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-sm) var(--spacing-sm);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        
        .dropdown-link:hover {
            background: rgba(94, 234, 212, 0.1);
            color: var(--accent);
        }
        
        /* 内容区域 */
        .content-area {
            flex: 1;
            padding: var(--spacing-xl);
            overflow: auto;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a2435"/><path d="M20,20 L80,20 L80,80 L20,80 Z" stroke="%23334155" fill="none" stroke-width="0.5"/></svg>');
            background-size: 20px 20px;
        }
        
        .content-placeholder {
            text-align: center;
            color: var(--text-secondary);
            padding: var(--spacing-xl);
            border: 1px dashed var(--border-color);
            border-radius: var(--radius-md);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .content-placeholder i {
            font-size: 3rem;
            margin-bottom: var(--spacing-md);
            color: var(--text-tertiary);
        }
        
        .content-placeholder h2 {
            margin-bottom: var(--spacing-md);
            font-weight: 500;
        }
        
        /* 模态框 */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 300;
            visibility: hidden;
            opacity: 0;
            transition: all 0.3s ease;
        }
        
        .modal.active {
            visibility: visible;
            opacity: 1;
        }
        
        .modal-content {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            width: 100%;
            max-width: 500px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
            overflow: hidden;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }
        
        .modal.active .modal-content {
            transform: translateY(0);
        }
        
        .modal-header {
            padding: var(--spacing-lg);
            background: rgba(26, 36, 53, 0.7);
            border-bottom: 1px solid var(--border-color);
        }
        
        .modal-title {
            font-size: 1.4rem;
            color: var(--accent);
        }
        
        .modal-body {
            padding: var(--spacing-xl);
        }
        
        .modal-footer {
            padding: var(--spacing-lg);
            background: rgba(26, 36, 53, 0.7);
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: var(--spacing-md);
        }
        
        .form-group {
            margin-bottom: var(--spacing-lg);
        }
        
        .form-label {
            display: block;
            margin-bottom: var(--spacing-sm);
            color: var(--text-primary);
            font-weight: 500;
        }
        
        .form-input {
            width: 100%;
            padding: var(--spacing-md);
            background: rgba(26, 36, 53, 0.7);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-family: var(--font-main);
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.1);
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: var(--spacing-sm) var(--spacing-sm);
            border-radius: var(--radius-sm);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
            font-family: var(--font-main);
            text-align: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: rgba(94, 234, 212, 0.2);
            color: #ffffff;
            border: 1px solid rgba(94, 234, 212, 0.4);
        }
        
        .btn-primary:hover {
            background: rgba(94, 234, 212, 0.3);
        }
        
        .btn-secondary {
            background: rgba(148, 163, 184, 0.15);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }
        
        .btn-secondary:hover {
            background: rgba(148, 163, 184, 0.25);
            color: #ffffff;
        }
        
        /* 管理员设置页面样式 */
        .admin-container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        
        .admin-sidebar {
            width: 240px;
            background: var(--secondary-bg);
            border-right: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .sidebar-header {
            padding: var(--spacing-lg);
            border-bottom: 1px solid var(--border-color);
        }
        
        .admin-title {
            font-size: 1.4rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
        }
        
        .sidebar-menu {
            padding: var(--spacing-lg) 0;
        }
        
        .menu-group {
            margin-bottom: var(--spacing-xl);
        }
        
        .group-title {
            padding: var(--spacing-sm) var(--spacing-xl);
            color: var(--text-tertiary);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .menu-item {
            padding: var(--spacing-md) var(--spacing-xl);
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            cursor: pointer;
            transition: all 0.3s;
            color: var(--text-secondary);
        }
        
        .menu-item:hover, .menu-item.active {
            background: rgba(94, 234, 212, 0.1);
            color: var(--accent);
            border-left: 3px solid var(--accent);
        }
        
        .menu-item i {
            width: 20px;
            text-align: center;
        }
        
        .submenu {
            padding-left: 52px;
        }
        
        .submenu-item {
            padding: var(--spacing-sm) 0;
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            cursor: pointer;
            transition: all 0.3s;
            color: var(--text-secondary);
            font-size: 0.9rem;
        }
        
        .submenu-item:hover, .submenu-item.active {
            color: var(--accent);
        }
        
        .submenu-item i {
            font-size: 0.8rem;
        }
        
        .admin-content {
            flex: 1;
            padding: var(--spacing-xl);
            overflow-y: auto;
        }
        
        .content-section {
            display: none;
        }
        
        .content-section.active {
            display: block;
        }
        
        .content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-xl);
        }
        
        .page-title {
            font-size: 1.8rem;
            color: var(--text-primary);
        }
        
        .page-actions {
            display: flex;
            gap: var(--spacing-md);
        }
        
        .action-btn {
            padding: var(--spacing-sm) var(--spacing-md);
            background: rgba(94, 234, 212, 0.1);
            border: 1px solid rgba(94, 234, 212, 0.3);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .action-btn:hover {
            background: rgba(94, 234, 212, 0.2);
        }
        
        .admin-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-xl);
            margin-bottom: var(--spacing-xl);
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-lg);
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent);
        }
        
        .card-actions {
            display: flex;
            gap: var(--spacing-sm);
        }
        
        .card-action {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(94, 234, 212, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .card-action:hover {
            background: rgba(94, 234, 212, 0.2);
        }
        
        .admin-table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .admin-table th {
            text-align: left;
            padding: var(--spacing-md);
            background: rgba(26, 36, 53, 0.5);
            color: var(--text-secondary);
            font-weight: 500;
            border-bottom: 1px solid var(--border-color);
        }
        
        .admin-table td {
            padding: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .admin-table tr:last-child td {
            border-bottom: none;
        }
        
        .admin-table tr:hover {
            background: rgba(94, 234, 212, 0.05);
        }
        
        .status-indicator {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            margin-right: var(--spacing-sm);
        }
        
        .status-active {
            background: var(--success);
        }
        
        .status-inactive {
            background: var(--error);
        }
        
        .status-pending {
            background: var(--warning);
        }
        
        .action-cell {
            display: flex;
            gap: var(--spacing-sm);
        }
        
        .table-action {
            padding: var(--spacing-xs) var(--spacing-sm);
            background: rgba(94, 234, 212, 0.1);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .table-action:hover {
            background: rgba(94, 234, 212, 0.2);
        }
        
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: var(--spacing-lg);
        }
        
        .grid-card {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .grid-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            border-color: var(--accent);
        }
        
        .grid-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-md);
        }
        
        .grid-card-title {
            font-weight: 600;
        }
        
        .grid-card-actions {
            display: flex;
            gap: var(--spacing-sm);
        }
        
        .grid-card-action {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: rgba(94, 234, 212, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .grid-card-action:hover {
            background: rgba(94, 234, 212, 0.2);
        }
        
        .grid-card-content {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
        }
        
        .file-upload {
            border: 2px dashed var(--border-color);
            border-radius: var(--radius-md);
            padding: var(--spacing-xl);
            text-align: center;
            margin-bottom: var(--spacing-lg);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .file-upload:hover {
            border-color: var(--accent);
            background: rgba(94, 234, 212, 0.05);
        }
        
        .file-upload-icon {
            font-size: 3rem;
            color: var(--text-tertiary);
            margin-bottom: var(--spacing-md);
        }
        
        .data-panel {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            margin-bottom: var(--spacing-lg);
            border: 1px solid var(--border-color);
        }
        
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-md);
        }
        
        .panel-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--accent);
        }
        
        .panel-content {
            color: var(--text-secondary);
            line-height: 1.7;
        }
        
        .password-strength {
            margin: var(--spacing-lg) 0;
        }
        
        .strength-bar {
            height: 8px;
            background: var(--border-color);
            border-radius: var(--radius-sm);
            overflow: hidden;
            margin-bottom: var(--spacing-sm);
        }
        
        .strength-level {
            height: 100%;
            background: var(--accent);
            transition: width 0.3s;
        }
        
        .strength-text {
            font-size: 0.9rem;
            color: var(--text-secondary);
        }
        
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .admin-sidebar {
                width: 200px;
            }
        }
        
        @media (max-width: 992px) {
            .admin-container {
                flex-direction: column;
            }
            
            .admin-sidebar {
                width: 100%;
                height: auto;
                max-height: 300px;
            }
        }
        
        @media (max-width: 768px) {
            .admin-content {
                padding: var(--spacing-md);
            }
            
            .content-header {
                flex-direction: column;
                align-items: flex-start;
                gap: var(--spacing-md);
            }
            
            .page-actions {
                align-self: flex-start;
            }
            
            .form-row {
                flex-direction: column;
                gap: var(--spacing-md);
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <!-- Logo区域 -->
        <div class="logo-area">
            <div class="logo-icon">
                <i class="fas fa-bolt"></i>
            </div>
            <div class="logo-text">冷端优化系统</div>
        </div>
        
        <!-- 功能导航区 -->
        <div class="nav-area">
            <ul class="nav-menu">
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-tachometer-alt"></i> 驾驶舱
                    </a>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-cogs"></i> 核心功能
                        <i class="fas fa-chevron-down"></i>
                    </a>
                    <ul class="submenu">
                        <li class="submenu-item">
                            <a href="#" class="submenu-link">
                                <i class="fas fa-tachometer-alt"></i> 背压分析
                            </a>
                        </li>
                        <li class="submenu-item">
                            <a href="#" class="submenu-link">
                                <i class="fas fa-broom"></i> 清洁分析
                            </a>
                        </li>
                        <li class="submenu-item">
                            <a href="#" class="submenu-link">
                                <i class="fas fa-snowflake"></i> 冬季防冻
                            </a>
                        </li>
                    </ul>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-brain"></i> AI智能分析
                        <i class="fas fa-chevron-down"></i>
                    </a>
                    <ul class="submenu">
                        <li class="submenu-item" class="submenu-link">
                            <a href="#">
                                <i class="fas fa-comments"></i> 对话式分析
                            </a>
                        </li>
                        <li class="submenu-item">
                            <a href="#" class="submenu-link">
                                <i class="fas fa-search"></i> 检索式分析
                            </a>
                        </li>
                    </ul>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-chart-bar"></i> 报表
                    </a>
                </li>
            </ul>
        </div>
        
        <!-- 用户区域 -->
        <div class="user-area">
            <div class="user-avatar" id="userAvatar">
                <i class="fas fa-user"></i>
            </div>
            <div class="user-dropdown" id="userDropdown">
                <div class="user-info">
                    <div class="user-name">管理员</div>
                    <div class="user-role">系统管理员</div>
                </div>
                
                <div class="dropdown-item">
                    <a href="#" class="dropdown-link" id="openChangePassword">
                        <i class="fas fa-key"></i> 修改密码
                    </a>
                </div>
                
                <div class="dropdown-item">
                    <a href="#" class="dropdown-link">
                        <i class="fas fa-user-circle"></i> 个人中心
                    </a>
                </div>
                
                <div class="dropdown-item">
                    <a href="#" class="dropdown-link">
                        <i class="fas fa-sign-out-alt"></i> 退出登录
                    </a>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主容器 -->
    <div class="admin-container">
        <!-- 左侧导航栏 -->
        <div class="admin-sidebar">
            <div class="sidebar-header">
                <div class="admin-title">
                    <i class="fas fa-cog"></i> 管理员设置
                </div>
            </div>
            
            <div class="sidebar-menu">
                <!-- 用户管理 -->
                <div class="menu-group">
                    <div class="group-title">用户管理</div>
                    <div class="menu-item active" data-target="user-management">
                        <i class="fas fa-users"></i> 用户管理
                    </div>
                    <div class="submenu">
                        <div class="submenu-item" data-target="permission-management">权限管理</div>
                        <div class="submenu-item" data-target="role-management">角色管理</div>
                        <div class="submenu-item" data-target="menu-management">菜单管理</div>
                    </div>
                </div>
                
                <!-- 算法管理 -->
                <div class="menu-group">
                    <div class="group-title">算法管理</div>
                    <div class="menu-item" data-target="algorithm-management">
                        <i class="fas fa-brain"></i> 算法管理
                    </div>
                    <div class="submenu">
                        <div class="submenu-item" data-target="pressure-optimization">背压优化</div>
                        <div class="submenu-item" data-target="cleaning-optimization">清洁优化</div>
                        <div class="submenu-item" data-target="winter-protection">冬季防冻</div>
                    </div>
                </div>
                
                <!-- 审计日志 -->
                <div class="menu-group">
                    <div class="group-title">审计日志</div>
                    <div class="menu-item" data-target="audit-logs">
                        <i class="fas fa-clipboard-list"></i> 审计日志
                    </div>
                </div>
                
                <!-- 知识管理 -->
                <div class="menu-group">
                    <div class="group-title">知识管理</div>
                    <div class="menu-item" data-target="knowledge-management">
                        <i class="fas fa-book"></i> 知识管理
                    </div>
                </div>
                
                <!-- 数据管理 -->
                <div class="menu-group">
                    <div class="group-title">数据管理</div>
                    <div class="menu-item" data-target="data-management">
                        <i class="fas fa-database"></i> 数据管理
                    </div>
                    <div class="submenu">
                        <div class="submenu-item" data-target="data-access">数据接入</div>
                        <div class="submenu-item" data-target="data-filling">数据补录</div>
                        <div class="submenu-item" data-target="data-development">数据开发</div>
                        <div class="submenu-item" data-target="data-modeling">数据模型</div>
                    </div>
                </div>
                
                <!-- 组态管理 -->
                <div class="menu-group">
                    <div class="group-title">组态管理</div>
                    <div class="menu-item" data-target="configuration-management">
                        <i class="fas fa-sliders-h"></i> 组态管理
                    </div>
                </div>
                
                <!-- 修改密码 -->
                <div class="menu-group">
                    <div class="group-title">账户设置</div>
                    <div class="menu-item" data-target="change-password">
                        <i class="fas fa-key"></i> 修改密码
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 右侧内容区域 -->
        <div class="admin-content">
            <!-- 用户管理 -->
            <div class="content-section active" id="user-management">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-users"></i> 用户管理
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-plus"></i> 新增用户
                        </button>
                        <button class="action-btn">
                            <i class="fas fa-download"></i> 导出数据
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">用户列表</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-filter"></i>
                            </div>
                            <div class="card-action">
                                <i class="fas fa-sync-alt"></i>
                            </div>
                        </div>
                    </div>
                    
                    <table class="admin-table">
                        <thead>
                            <tr>
                                <th>用户名</th>
                                <th>姓名</th>
                                <th>角色</th>
                                <th>部门</th>
                                <th>状态</th>
                                <th>最后登录</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>admin</td>
                                <td>系统管理员</td>
                                <td>超级管理员</td>
                                <td>信息中心</td>
                                <td>
                                    <span class="status-indicator status-active"></span> 启用
                                </td>
                                <td>2023-10-15 14:28</td>
                                <td class="action-cell">
                                    <span class="table-action">编辑</span>
                                    <span class="table-action">禁用</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                            <tr>
                                <td>zhang_g</td>
                                <td>张工</td>
                                <td>运维工程师</td>
                                <td>运行部</td>
                                <td>
                                    <span class="status-indicator status-active"></span> 启用
                                </td>
                                <td>2023-10-15 13:45</td>
                                <td class="action-cell">
                                    <span class="table-action">编辑</span>
                                    <span class="table-action">禁用</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                            <tr>
                                <td>li_h</td>
                                <td>李工</td>
                                <td>优化分析师</td>
                                <td>技术部</td>
                                <td>
                                    <span class="status-indicator status-active"></span> 启用
                                </td>
                                <td>2023-10-14 09:32</td>
                                <td class="action-cell">
                                    <span class="table-action">编辑</span>
                                    <span class="table-action">禁用</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                            <tr>
                                <td>wang_m</td>
                                <td>王经理</td>
                                <td>部门主管</td>
                                <td>运行部</td>
                                <td>
                                    <span class="status-indicator status-inactive"></span> 禁用
                                </td>
                                <td>2023-10-10 11:20</td>
                                <td class="action-cell">
                                    <span class="table-action">编辑</span>
                                    <span class="table-action">启用</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <!-- 算法管理 -->
            <div class="content-section" id="algorithm-management">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-brain"></i> 算法管理
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-plus"></i> 新增算法
                        </button>
                        <button class="action-btn">
                            <i class="fas fa-upload"></i> 导入算法
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">算法列表</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-filter"></i>
                            </div>
                            <div class="card-action">
                                <i class="fas fa-sync-alt"></i>
                            </div>
                        </div>
                    </div>
                    
                    <table class="admin-table">
                        <thead>
                            <tr>
                                <th>算法名称</th>
                                <th>算法类型</th>
                                <th>版本</th>
                                <th>创建时间</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>冷端背压优化算法</td>
                                <td>背压优化</td>
                                <td>v2.3.1</td>
                                <td>2023-09-15</td>
                                <td>
                                    <span class="status-indicator status-active"></span> 启用
                                </td>
                                <td class="action-cell">
                                    <span class="table-action">更新</span>
                                    <span class="table-action">配置</span>
                                    <span class="table-action">禁用</span>
                                </td>
                            </tr>
                            <tr>
                                <td>散热片清洁优化算法</td>
                                <td>清洁优化</td>
                                <td>v1.8.2</td>
                                <td>2023-08-22</td>
                                <td>
                                    <span class="status-indicator status-active"></span> 启用
                                </td>
                                <td class="action-cell">
                                    <span class="table-action">更新</span>
                                    <span class="table-action">配置</span>
                                    <span class="table-action">禁用</span>
                                </td>
                            </tr>
                            <tr>
                                <td>冬季防冻优化算法</td>
                                <td>冬季防冻</td>
                                <td>v3.0.0</td>
                                <td>2023-10-05</td>
                                <td>
                                    <span class="status-indicator status-pending"></span> 测试中
                                </td>
                                <td class="action-cell">
                                    <span class="table-action">更新</span>
                                    <span class="table-action">配置</span>
                                    <span class="table-action">启用</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <!-- 审计日志 -->
            <div class="content-section" id="audit-logs">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-clipboard-list"></i> 审计日志
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-download"></i> 导出日志
                        </button>
                        <button class="action-btn">
                            <i class="fas fa-filter"></i> 高级筛选
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">操作日志</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-search"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="filter-section">
                        <div class="form-row">
                            <div class="form-col">
                                <div class="form-group">
                                    <label class="form-label">时间范围</label>
                                    <div class="date-range">
                                        <input type="date" class="form-input">
                                        <span>至</span>
                                        <input type="date" class="form-input">
                                    </div>
                                </div>
                            </div>
                            <div class="form-col">
                                <div class="form-group">
                                    <label class="form-label">操作人</label>
                                    <input type="text" class="form-input" placeholder="输入操作人姓名">
                                </div>
                            </div>
                        </div>
                        <div class="form-row">
                            <div class="form-col">
                                <div class="form-group">
                                    <label class="form-label">操作类型</label>
                                    <select class="form-input">
                                        <option value="">全部</option>
                                        <option value="user">用户管理</option>
                                        <option value="system">系统设置</option>
                                        <option value="algorithm">算法管理</option>
                                        <option value="data">数据管理</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-col">
                                <div class="form-group">
                                    <label class="form-label">操作结果</label>
                                    <select class="form-input">
                                        <option value="">全部</option>
                                        <option value="success">成功</option>
                                        <option value="fail">失败</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <button class="form-submit">
                            <i class="fas fa-search"></i> 搜索
                        </button>
                    </div>
                    
                    <table class="admin-table">
                        <thead>
                            <tr>
                                <th>时间</th>
                                <th>操作人</th>
                                <th>操作类型</th>
                                <th>操作内容</th>
                                <th>IP地址</th>
                                <th>结果</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>2023-10-15 14:28:36</td>
                                <td>admin</td>
                                <td>用户管理</td>
                                <td>修改用户权限</td>
                                <td>192.168.1.100</td>
                                <td><span class="status-indicator status-active"></span> 成功</td>
                            </tr>
                            <tr>
                                <td>2023-10-15 13:45:22</td>
                                <td>zhang_g</td>
                                <td>系统设置</td>
                                <td>修改系统参数</td>
                                <td>192.168.1.105</td>
                                <td><span class="status-indicator status-active"></span> 成功</td>
                            </tr>
                            <tr>
                                <td>2023-10-15 11:20:15</td>
                                <td>li_h</td>
                                <td>算法管理</td>
                                <td>上传新算法</td>
                                <td>192.168.1.108</td>
                                <td><span class="status-indicator status-active"></span> 成功</td>
                            </tr>
                            <tr>
                                <td>2023-10-14 16:30:45</td>
                                <td>wang_m</td>
                                <td>数据管理</td>
                                <td>导入历史数据</td>
                                <td>192.168.1.102</td>
                                <td><span class="status-indicator status-inactive"></span> 失败</td>
                            </tr>
                        </tbody>
                    </table>
                    
                    <div class="pagination">
                        <button class="action-btn">
                            <i class="fas fa-chevron-left"></i>
                        </button>
                        <button class="action-btn active">1</button>
                        <button class="action-btn">2</button>
                        <button class="action-btn">3</button>
                        <button class="action-btn">
                            <i class="fas fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 知识管理 -->
            <div class="content-section" id="knowledge-management">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-book"></i> 知识管理
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-plus"></i> 新建文档
                        </button>
                        <button class="action-btn">
                            <i class="fas fa-upload"></i> 上传文件
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">知识库</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-sort"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="file-upload">
                        <div class="file-upload-icon">
                            <i class="fas fa-cloud-upload-alt"></i>
                        </div>
                        <div>点击或拖拽文件到此处上传</div>
                        <div class="text-tertiary">支持PDF、DOC、XLS、PPT等格式，最大文件大小100MB</div>
                    </div>
                    
                    <table class="admin-table">
                        <thead>
                            <tr>
                                <th>文件名称</th>
                                <th>类型</th>
                                <th>大小</th>
                                <th>上传者</th>
                                <th>上传时间</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>冷端优化技术规范.pdf</td>
                                <td>PDF</td>
                                <td>2.4 MB</td>
                                <td>admin</td>
                                <td>2023-10-10</td>
                                <td class="action-cell">
                                    <span class="table-action">预览</span>
                                    <span class="table-action">下载</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                            <tr>
                                <td>冬季防冻操作手册.docx</td>
                                <td>DOCX</td>
                                <td>1.8 MB</td>
                                <td>li_h</td>
                                <td>2023-10-08</td>
                                <td class="action-cell">
                                    <span class="table-action">预览</span>
                                    <span class="table-action">下载</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                            <tr>
                                <td>设备维护记录.xlsx</td>
                                <td>XLSX</td>
                                <td>850 KB</td>
                                <td>zhang_g</td>
                                <td>2023-10-05</td>
                                <td class="action-cell">
                                    <span class="table-action">预览</span>
                                    <span class="table-action">下载</span>
                                    <span class="table-action">删除</span>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            
            <!-- 数据管理 -->
            <div class="content-section" id="data-management">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-database"></i> 数据管理
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-plus"></i> 新建数据源
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">数据管理面板</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-sync-alt"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="data-panels">
                        <div class="data-panel">
                            <div class="panel-header">
                                <h3 class="panel-title">
                                    <i class="fas fa-plug"></i> 数据接入
                                </h3>
                                <div class="panel-actions">
                                    <div class="card-action">
                                        <i class="fas fa-cog"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-content">
                                支持多种数据源接入，包括关系型数据库、实时测点数据、API接口等。
                            </div>
                        </div>
                        
                        <div class="data-panel">
                            <div class="panel-header">
                                <h3 class="panel-title">
                                    <i class="fas fa-edit"></i> 数据补录
                                </h3>
                                <div class="panel-actions">
                                    <div class="card-action">
                                        <i class="fas fa-cog"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-content">
                                提供数据在线填报功能，支持线下数据批量导入，满足企业业务数据补录需求。
                            </div>
                        </div>
                        
                        <div class="data-panel">
                            <div class="panel-header">
                                <h3 class="panel-title">
                                    <i class="fas fa-code"></i> 数据开发
                                </h3>
                                <div class="panel-actions">
                                    <div class="card-action">
                                        <i class="fas fa-cog"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-content">
                                提供在线开发环境，支持多语言及计算框架，实现数据处理脚本编写、调试到执行的全流程管理。
                            </div>
                        </div>
                        
                        <div class="data-panel">
                            <div class="panel-header">
                                <h3 class="panel-title">
                                    <i class="fas fa-cubes"></i> 数据模型
                                </h3>
                                <div class="panel-actions">
                                    <div class="card-action">
                                        <i class="fas fa-cog"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-content">
                                满足企业数仓分层、数据建模管理需求，提供从数据调研、数据建模到形成数据资产的全过程管理。
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 组态管理 -->
            <div class="content-section" id="configuration-management">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-sliders-h"></i> 组态管理
                    </h1>
                    <div class="page-actions">
                        <button class="action-btn">
                            <i class="fas fa-plus"></i> 新建任务
                        </button>
                    </div>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">组态任务</h2>
                        <div class="card-actions">
                            <div class="card-action">
                                <i class="fas fa-sort"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card-grid">
                        <div class="grid-card">
                            <div class="grid-card-header">
                                <div class="grid-card-title">#1机组监控</div>
                                <div class="grid-card-actions">
                                    <div class="grid-card-action">
                                        <i class="fas fa-edit"></i>
                                    </div>
                                    <div class="grid-card-action">
                                        <i class="fas fa-trash"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="grid-card-content">
                                监控#1机组运行状态，包括温度、压力、流量等关键参数
                            </div>
                        </div>
                        
                        <div class="grid-card">
                            <div class="grid-card-header">
                                <div class="grid-card-title">冷却塔优化</div>
                                <div class="grid-card-actions">
                                    <div class="grid-card-action">
                                        <i class="fas fa-edit"></i>
                                    </div>
                                    <div class="grid-card-action">
                                        <i class="fas fa-trash"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="grid-card-content">
                                优化冷却塔运行参数，提高冷却效率
                            </div>
                        </div>
                        
                        <div class="grid-card">
                            <div class="grid-card-header">
                                <div class="grid-card-title">能耗分析</div>
                                <div class="grid-card-actions">
                                    <div class="grid-card-action">
                                        <i class="fas fa-edit"></i>
                                    </div>
                                    <div class="grid-card-action">
                                        <i class="fas fa-trash"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="grid-card-content">
                                分析系统能耗，找出节能优化点
                            </div>
                        </div>
                        
                        <div class="grid-card">
                            <div class="grid-card-header">
                                <div class="grid-card-title">报警监控</div>
                                <div class="grid-card-actions">
                                    <div class="grid-card-action">
                                        <i class="fas fa-edit"></i>
                                    </div>
                                    <div class="grid-card-action">
                                        <i class="fas fa-trash"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="grid-card-content">
                                监控系统报警信息，及时处理异常
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 修改密码 -->
            <div class="content-section" id="change-password">
                <div class="content-header">
                    <h1 class="page-title">
                        <i class="fas fa-key"></i> 修改密码
                    </h1>
                </div>
                
                <div class="admin-card">
                    <div class="card-header">
                        <h2 class="card-title">修改管理员密码</h2>
                    </div>
                    
                    <form>
                        <div class="form-group">
                            <label class="form-label">当前密码</label>
                            <input type="password" class="form-input" placeholder="请输入当前密码">
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">新密码</label>
                            <input type="password" class="form-input" placeholder="请输入新密码">
                        </div>
                        
                        <div class="form-group">
                            <label class="form-label">确认新密码</label>
                            <input type="password" class="form-input" placeholder="请再次输入新密码">
                        </div>
                        
                        <div class="password-strength">
                            <div class="strength-bar">
                                <div class="strength-level" style="width: 60%;"></div>
                            </div>
                            <div class="strength-text">密码强度：中等</div>
                        </div>
                        
                        <button type="submit" class="form-submit">
                            <i class="fas fa-save"></i> 保存更改
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 修改密码模态框 -->
    <div class="modal" id="passwordModal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title">
                    <i class="fas fa-key"></i> 修改密码
                </h3>
            </div>
            
            <div class="modal-body">
                <form id="passwordForm">
                    <div class="form-group">
                        <label for="currentPassword" class="form-label">当前密码</label>
                        <input type="password" id="currentPassword" class="form-input" required>
                    </div>
                    
                    <div class="form-group">
                        <label for="newPassword" class="form-label">新密码</label>
                        <input type="password" id="newPassword" class="form-input" required>
                    </div>
                    
                    <div class="form-group">
                        <label for="confirmPassword" class="form-label">确认新密码</label>
                        <input type="password" id="confirmPassword" class="form-input" required>
                    </div>
                </form>
            </div>
            
            <div class="modal-footer">
                <button class="btn btn-secondary" id="cancelChangePassword">
                    取消
                </button>
                <button class="btn btn-primary" id="submitChangePassword">
                    保存更改
                </button>
            </div>
        </div>
    </div>
    
    <script>
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 用户头像下拉菜单交互
            const userAvatar = document.getElementById('userAvatar');
            const userDropdown = document.getElementById('userDropdown');
            const passwordModal = document.getElementById('passwordModal');
            const openChangePassword = document.getElementById('openChangePassword');
            const cancelChangePassword = document.getElementById('cancelChangePassword');
            
            // 切换用户下拉菜单
            userAvatar.addEventListener('click', function(e) {
                e.stopPropagation();
                userDropdown.classList.toggle('active');
            });
            
            // 点击其他地方关闭下拉菜单
            document.addEventListener('click', function(e) {
                if (!userDropdown.contains(e.target) && e.target !== userAvatar) {
                    userDropdown.classList.remove('active');
                }
            });
            
            // 打开修改密码模态框
            openChangePassword.addEventListener('click', function(e) {
                e.preventDefault();
                userDropdown.classList.remove('active');
                passwordModal.classList.add('active');
            });
            
            // 关闭模态框
            cancelChangePassword.addEventListener('click', function() {
                passwordModal.classList.remove('active');
            });
            
            // 提交密码修改
            document.getElementById('submitChangePassword').addEventListener('click', function() {
                const currentPassword = document.getElementById('currentPassword').value;
                const newPassword = document.getElementById('newPassword').value;
                const confirmPassword = document.getElementById('confirmPassword').value;
                
                if (newPassword !== confirmPassword) {
                    alert('新密码和确认密码不一致！');
                    return;
                }
                
                if (newPassword.length < 6) {
                    alert('密码长度至少为6位！');
                    return;
                }
                
                // 在实际项目中这里会有API调用
                console.log('修改密码:', {
                    currentPassword,
                    newPassword
                });
                
                alert('密码已成功更新！');
                passwordModal.classList.remove('active');
                
                // 清空表单
                document.getElementById('currentPassword').value = '';
                document.getElementById('newPassword').value = '';
                document.getElementById('confirmPassword').value = '';
            });
            
            // 点击模态框背景关闭模态框
            passwordModal.addEventListener('click', function(e) {
                if (e.target === passwordModal) {
                    passwordModal.classList.remove('active');
                }
            });
            
            // 防止模态框内容点击关闭
            document.querySelector('.modal-content').addEventListener('click', function(e) {
                e.stopPropagation();
            });
            
            // 菜单项点击事件
            const menuItems = document.querySelectorAll('.menu-item, .submenu-item');
            const contentSections = document.querySelectorAll('.content-section');
            
            menuItems.forEach(item => {
                item.addEventListener('click', function() {
                    const targetId = this.getAttribute('data-target');
                    
                    // 移除所有菜单项的激活状态
                    menuItems.forEach(i => i.classList.remove('active'));
                    
                    // 设置当前菜单项为激活状态
                    this.classList.add('active');
                    
                    // 隐藏所有内容区域
                    contentSections.forEach(section => {
                        section.classList.remove('active');
                    });
                    
                    // 显示目标内容区域
                    const targetSection = document.getElementById(targetId);
                    if (targetSection) {
                        targetSection.classList.add('active');
                    }
                });
            });
            
            // 表格操作按钮事件
            document.querySelectorAll('.table-action').forEach(action => {
                action.addEventListener('click', function() {
                    const row = this.closest('tr');
                    const actionName = this.textContent;
                    const itemName = row.querySelector('td:first-child').textContent;
                    
                    alert(`执行操作: ${actionName} ${itemName}`);
                });
            });
            
            // 文件上传区域事件
            const fileUpload = document.querySelector('.file-upload');
            if (fileUpload) {
                fileUpload.addEventListener('click', function() {
                    alert('打开文件选择对话框');
                });
            }
        });
    </script>
</body>
</html>
